<%--
  Created by IntelliJ IDEA.
  User: ch-hui
  Date: 15/12/20
  Time: 下午7:05
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ include file="/WEB-INF/common/taglibs.jsp" %>
<html>
<head>
    <title>原料明细</title>
</head>
<body>

<div class="row">
  <div class="col-lg-6">
    <div class="ibox float-e-margins">
      <div class="ibox-title">
        <h5>&nbsp;原料基本信息</h5>
        <div class="ibox-tools">
          <a class="collapse-link">
            <i class="fa fa-chevron-up"></i>
          </a>
          <a class="close-link">
            <i class="fa fa-times"></i>
          </a>
        </div>
      </div>
      <div class="ibox-content">
        <form class="form-horizontal m-t" id="basicForm">
          <input type="hidden" name="supplyId" value="${material.id}"/>

          <div class="form-group">
            <label class="col-sm-3 control-label">饲料编号：</label>
            <div class="col-sm-8">
              <input id="cfn" name="contact_person" value="${material.cfn}" class="form-control" type="text" aria-required="true" aria-invalid="false" class="valid">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">原料名称：</label>
            <div class="col-sm-8">
              <input id="material_name" name="material_name" value="${material.name}" class="form-control" type="text">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">采购价：</label>
            <div class="col-sm-8">
              <input id="enterPrice" name="telephone" value="${material.lastEnterPrice}" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error">
            </div>
          </div>
          <div class="form-group">
            <label class="col-sm-3 control-label">出售价：</label>
            <div class="col-sm-8">
              <input name="marketPrice" class="form-control" type="text" value="${material.currentMarketPrice}">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">原料描述：</label>
            <div class="col-sm-8">
                <textarea id="feedDescription" name="feedDescription" class="form-control" required="" aria-required="true">${material.feedDesc}</textarea>
            </div>
          </div>
          <%--<div class="form-group">--%>
            <%--<div class="col-sm-8 col-sm-offset-3">--%>
              <%--<button class="btn btn-primary" type="submit"><i class="fa fa-edit"></i>&nbsp;保存</button>--%>
              <%--<button class="btn btn-primary" type="button" name="backButton"><i class="fa fa-undo"></i>&nbsp;返回</button>--%>
              <%--<button class="btn btn-danger" type="button" id="basicDeleteButton" style="display: none"><i class="fa fa-trash-o"></i>&nbsp;删除</button>--%>
            <%--</div>--%>
          <%--</div>--%>
        </form>
      </div>
    </div>
  </div>

  <div class="col-lg-6">
    <div class="ibox float-e-margins">
      <div class="ibox-title">
        <h5>&nbsp;原料常规成份</h5>
        <div class="ibox-tools">
          <a class="collapse-link">
            <i class="fa fa-chevron-up"></i>
          </a>
          <a class="close-link">
            <i class="fa fa-times"></i>
          </a>
        </div>
      </div>
      <div class="ibox-content">
        <form class="form-horizontal m-t" id="nutritiveForm">
          <input type="hidden" name="materialId" value="${nutritive.material.id}"/>

          <div class="form-group">
            <label class="col-sm-3 control-label">干物质%：</label>
            <div class="col-sm-3">
              <input id="material_dm" name="material_dm" value="${nutritive.dm}" class="form-control" type="text">
            </div>
            <label class="col-sm-3 control-label">粗蛋白%：</label>
            <div class="col-sm-3">
              <input id="material_cp" name="material_cp" value="${nutritive.cp}" class="form-control" type="text" aria-required="true" aria-invalid="false" class="valid">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">粗脂肪%：</label>
            <div class="col-sm-3">
              <input id="material_ee" name="material_ee" value="${nutritive.ee}" class="form-control" type="text" aria-required="true" aria-invalid="true" class="error">
            </div>

            <label class="col-sm-3 control-label">粗纤维%：</label>
            <div class="col-sm-3">
              <input id="material_cf" name="material_cf" class="form-control" type="text" value="${nutritive.cf}">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">无氮浸出物%：</label>
            <div class="col-sm-3">
              <input id="material_nfe" name="material_nfe" class="form-control" type="text" value="${nutritive.nfe}">
            </div>

            <label class="col-sm-3 control-label">粗灰分%：</label>
            <div class="col-sm-3">
              <input id="material_ash" name="material_ash" class="form-control" type="text" value="${nutritive.ash}">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">中洗纤维%：</label>
            <div class="col-sm-3">
              <input id="material_ndf" name="material_ndf" class="form-control" type="text" value="${nutritive.ndf}">
            </div>

            <label class="col-sm-3 control-label">酸洗纤维%：</label>
            <div class="col-sm-3">
              <input id="material_adf" name="material_adf" class="form-control" type="text" value="${nutritive.adf}">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">淀粉%：</label>
            <div class="col-sm-3">
              <input id="material_starch" name="material_starch" class="form-control" type="text" value="${nutritive.starch}">
            </div>

            <label class="col-sm-3 control-label">钙%：</label>
            <div class="col-sm-3">
              <input id="material_ca" name="material_ca" class="form-control" type="text" value="${nutritive.ca}">
            </div>
          </div>

          <div class="form-group">
            <label class="col-sm-3 control-label">总磷%：</label>
            <div class="col-sm-3">
              <input id="material_tp" name="material_tp" class="form-control" type="text" value="${nutritive.tp}">
            </div>

            <label class="col-sm-3 control-label">有效磷%：</label>
            <div class="col-sm-3">
              <input id="material_vp" name="material_vp" class="form-control" type="text" value="${nutritive.vp}">
            </div>
          </div>

          <%--<div class="form-group">--%>
            <%--<div class="col-sm-8 col-sm-offset-3">--%>
              <%--<button class="btn btn-primary" type="submit"><i class="fa fa-edit"></i>&nbsp;保存</button>--%>
              <%--<button class="btn btn-primary" type="button" name="backButton"><i class="fa fa-undo"></i>&nbsp;返回</button>--%>
              <%--<button class="btn btn-danger" type="button" id="deleteButton" style="display: none"><i class="fa fa-trash-o"></i>&nbsp;删除</button>--%>
            <%--</div>--%>
          <%--</div>--%>
        </form>
      </div>
    </div>
  </div>
</div>

<div class="row">
    <div class="col-lg-6">
      <a class="btn btn-primary btn-rounded btn-block"><i class="fa fa-edit"></i> 保存</a>
    </div>

    <div class="col-lg-6">
      <a class="btn btn-primary btn-rounded btn-block" href="${BASE}/material"><i class="fa fa-undo"></i> 返回</a>
    </div>
  <div>&nbsp;</div>
</div>





<script type="text/javascript" src="${BASE}/www/script/material/material.js"></script>
</body>
</html>
